﻿using System.Windows;
using System.Windows.Controls;

namespace Games.WPF.UI
{
    public partial class Toolbox : ItemsControl
    {
        #region Constructors

        public Toolbox()
        {
            ItemSize = new Size(65, 65);
        }

        #endregion

        #region Properties

        public Size ItemSize { get; set; }

        #endregion

        #region Methods
        
        protected override DependencyObject GetContainerForItemOverride()
        {
            return new ToolboxItem();
        }

        protected override bool IsItemItsOwnContainerOverride(object item)
        {
            return (item is ToolboxItem);
        }

        #endregion
    }
}